// 基于全局Vue对象使用http
var tbUserService = {
	search : function(pageNum, pageSize, searchEntity) {
		return Vue.http.post('/tbUser/search?pageNum='
				+ pageNum + '&pageSize=' + pageSize, searchEntity)
	},
	findPage : function(pageNum, pageSize) {
		return Vue.$http.get('/tbUser/findPage?pageNum='
				+ pageNum + '&pageSize=' + pageSize)
	},
	findOne : function(id) {
		return Vue.http.get('/tbUser/findOne?id=' + id)
	},
	update : function(entity) {
		return Vue.http.post('/tbUser/update', entity)
	},
	add : function(entity) {
		return Vue.http.post('/tbUser/add', entity)
	},
	del : function(selectIds) {
		return Vue.http.get('/tbUser/del?ids='
				+ selectIds)
	}
}